<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>车辆信息</title>
        <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css" />
        <style type="text/css">
            .order-list a {
                position: relative;
            }
            .order-list span {
                float: right;
                margin-right: 20px;
            }
            .pagination ul {
                display: inline-block;
                margin-left: 0;
                margin-bottom: 0;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                border-radius: 3px;
                -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
                -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            }
            .pagination ul > li {
                display: inline;
            }
            .pagination ul > li > a, .pagination ul > li > span {
                float: left;
                padding: 0 14px;
                line-height: 38px;
                text-decoration: none;
                background-color: #ffffff;
                border: 1px solid #dddddd;
                border-left-width: 0;
            }
        </style>
    </head>
    <body>
        <include file="Index/head"/>
        <div class="wrapper main-wrapper wrapper-content ">
            <div class="page-menubar">
                <div class="menu-header">用户管理</div>
                <ul class="order-list">
                    <li>
                        <a href="{:U('User/userinfo')}">用户信息</a>
                    </li>
                    <li>
                        <a href="{:U('User/sijiinfo')}">司机信息</a>
                    </li>
                    <li>
                        <a href="{:U('User/fankui_list')}">用户反馈</a>
                    </li>

                    <li class="active">
                        <a href="{:U('User/cheliang')}">车辆经营</a>
                    </li>

                </ul>
            </div>
            <!--主要内容-->
            <div class="page-content" style="display: block;">
                <!--内容标题-->
                <!--<div class="page-heading" style="position:relative;">-->
                    <!--<h2>司机列表</h2>-->
                     <!--<a  href="{:U('User/addsiji')}" class="btn btn-primary" style="position:absolute;right: 0;top: 10px;">添加司机</a>-->
                <!--</div>-->
                <!--<div class="page-toolbar row m-b-sm m-t-sm">-->
                    <!--<div class="col-sm-6 pull-right">-->
                        <!--<form action="" method="post">-->
                            <!--<div class="input-group">-->
                                <!--<input type="text" class="form-control input-sm" name="keyword" value="" placeholder="可搜索姓名/手机号">                                <span class="input-group-btn">-->
                                    <!--<button class="btn btn-sm btn-primary" type="submit"> 搜索</button>-->
                                <!--</span>-->
                            <!--</div>-->
                        <!--</form>-->
                    <!--</div>-->
                <!--</div>-->
                <div class="panel panel-default" style="margin-top: 20px;">
                    <div class="panel-body">
                        <table class="table table-hover table-responsive">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>姓名</th>
                                    <th>电话</th>
                                    <th>城市</th>
                                    <th>身份证账号</th>
                                     <th>审核状态</th>
                                    <th style="min-width: 64px;">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <volist name="siji" id="vo">
                                <tr>
                                    <th>{$vo.id}</th>
                                    <td>{$vo.xingming}</td>
                                    <td>{$vo.dianhua}</td>
                                    <td>{$vo.city}</td>
                                    <td>{$vo.card_sf}</td>
                                    <td>
                                        <if condition="$vo.status eq 1">
                                            <span style="color:green;">【通过】</span>
                                            <elseif condition="$vo.status eq 2"/>
                                            <span style="color:red;">【不通过】</span>
                                            <else />
                                            <span style="color:orange;">【待审核】</span>
                                        </if>
                                    </td>
                                    <td>
                                        <a href="javascript:void(0);" class="sijixg" title="修改" data-url="{:U('sijixg',array('openid'=>$vo['openid']))}"><i class="glyphicon glyphicon-pencil"></i></a>
                                        <a href="javascript:void(0);" class="shijishow" title="查看详情" data-url="{:U('sijishow',array('openid'=>$vo['openid']))}"><i class="glyphicon glyphicon-eye-open"></i></a>
                                        <a href="javascript:void(0);" class="sijicheck" title="审核" data-url="{:U('sijicheck',array('openid'=>$vo['openid']))}"><i class="glyphicon glyphicon-lock"></i></a>
                                        <a onclick="return confirm('正在删除用户，请确认')" title="删除" href="__CONTROLLER__/delsj/id/{$vo.id}"><i class="glyphicon glyphicon-remove-sign"></i></a>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>
                    {$page}
                </div>
            </div>
        </div>
    </body>
    <script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__PUBLIC__/layer/layer.js" type="text/javascript" charset="utf-8"></script>
    <script>
         $(function () {
             //司机check
             $(".sijicheck").on("click", function () {
                 var data_url = $(this).attr("data-url");
                 layer.open({
                     type: 2,
                     title: '司机的详细详细',
                     shadeClose: true,
                     shade: 0.8,
                     area: ['30%', '30%'],
                     content: data_url //iframe的url
                 });
             });

             //司机的详细信息
             $(".shijishow").on("click", function () {
                 var data_url = $(this).attr("data-url");
                 layer.open({
                     type: 2,
                     title: '司机的详细详细',
                     shadeClose: true,
                     shade: 0.8,
                     area: ['90%', '80%'],
                     content: data_url //iframe的url
                 });
             });

             //修改司机的信息
            $(".sijixg").on("click",function(){
                var data_url = $(this).attr("data-url");
                layer.open({
                    type: 2,
                    title: '修改司机的信息',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['90%', '80%'],
                    content: data_url, //iframe的url
                    cancel: function(){
                        location.reload();
                    }
                });
            });

         });

    </script>
</html>